﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chess
{
    public class Bishop: InterfacePiece
    {
        Piece piece = null;
        
        public Bishop(Piece Bishop)
		{
			piece = Bishop;
		}        
      
        public int ImageIndex
        {
            get {return (this.piece.Player.isColor == Player.Color.WHITE ?  6:7 ); }
        }    

        public void SetPosition(Moves moves)
        {
            Board.PieceLine(moves,piece,piece.Player,17);
            Board.PieceLine(moves,piece,piece.Player,15);
            Board.PieceLine(moves, piece, piece.Player,-17);
            Board.PieceLine(moves,piece,piece.Player,-15);
        }
    }
}
